#include <iostream>
#include <time.h>
#include <stdlib.h>
#include <fstream>

using namespace std;

int main(){
   	ofstream log_file, msed_file, cs_file, cc_file;
   	log_file.open("log.txt");
   	msed_file.open("msed.txt");
   	cs_file.open("cs.txt");
   	cc_file.open("cc.txt");

   	double a, b, c;
   	int x, y, z;

      srand( time(NULL) );
   	for (int i = 0; i < 11; ++i)
   	{
   		for (int j = 0; j < 17; j++)
   		{
   			a = rand() / .7; b = rand() / 1.13; c = rand() / 1.19;
   			x = rand() % 2; y = rand() % 2; z = rand() % 2;
			log_file << j << " " << i << "\t" << a << " " << x << "\t" << b << " " << y << "\t" << c << " " << z << endl;
			msed_file << x;
			cs_file << y;
			cc_file << z;
   		}
   		msed_file << endl;
   		cs_file << endl;
   		cc_file << endl;
   	}
   	log_file.close();
   	msed_file.close();
   	cs_file.close();
   	cc_file.close();

	return 0;
}